fixed with the triple-buffer system